<script type="text/javascript">
    function selectall(obj,a,b){
        $(".sbox").prop('checked', $(obj).is(':checked'));
        selectQuestionCompelete();
    }
</script>
<form action="" method="post" direct="modal-body" id="searchForm">
    <table class="table form-inline">
        <tbody>
        <tr>
            <td>
                周次：<select name="weekid" class="combox form-control" id="sectionselect">
                <option value="">不限</option>
                {foreach name="weekList" item="v"}
                <option value="{$v.weekid}">{$v.week_name}</option>
                {/foreach}
            </select>
            </td>
            <td>
                <button class="btn btn-primary" type="button" onclick="ajax_get_table('searchForm','/admin/Exam/ajaxQuestionList/p/1.html')">检索</button>
            </td>
        </tr>
        </tbody>
    </table>
    <input type="hidden" id="qtypeid" name="qtypeid" value="{$qtypeid}"/>
    <input type="hidden" id="subjectid" name="subjectid" value="{$subjectid}"/>
</form>
<div class="input"></div>
<div id="ajaxList">

</div>
<script>
    ajax_get_table('searchForm',"/admin/Exam/ajaxQuestionList/p/1.html");
    function ajax_get_table(form,url){
        $.ajax({
            type : "POST",
            url:url,
            data : $('#'+form).serialize(),// 你的formid
            success: function(data){
                $("#ajaxList").html('');
                $("#ajaxList").append(data);
            }
        });
        return false;
    }
</script>